package com.blog.zip;

import org.apache.tomcat.util.http.LegacyCookieProcessor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;

import javax.annotation.PostConstruct;
import java.util.TimeZone;


@MapperScan(value = "com.blog.zip.mapper") //扫描com.blog.zip.mapper下的接口
@SpringBootApplication
@EnableCaching
public class ZipBlogServeApplication {

    @PostConstruct
    void started() {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
    }

    public static void main(String[] args) {
        //启动多线程
    	SpringApplication.run(ZipBlogServeApplication.class, args);
    }



}
